<?php

/**
 * lecture actions.
 *
 * @package    oacademy
 * @subpackage lecture
 * @author     Otto Giron
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class lectureActions extends sfActions
{
  
  public function executeShow(sfWebRequest $request)
  {  
  	$this->lecture=$this->getRoute()->getObject();
  }

  protected function processForm(sfWebRequest $request, sfForm $form)
  {
    $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
    if ($form->isValid())
    {
      $lecture = $form->save();

      $this->redirect('lecture/edit?id='.$lecture->getId());
    }
  }
}
